GameManager Class Reference

#include <GameManager.h>

List of all members.

Public Member Functions

 GameManager (void)
 ~GameManager (void)
int init (void)
void printToConsole (std::string output)
void addScene (Scene &newScene)
void removeScene (Scene &oldScene)
void setActiveScene (Scene &aScene)
void keyPressed (UINT nChar, bool bKeyDown, bool bAltDown, void *pUserContext)
void setMouseStatus (bool bLeftButtonDown, bool bRightButtonDown, bool bMiddleButtonDown, bool bSideButton1Down, bool bSideButton2Down, int nMouseWheelDelta, int xPos, int yPos)
void updateGame (float fElapsedTime)
void initGame ()
ID3DXEffect * getEffect (UINT id)
ID3DXEffect * loadEffect (UINT id, LPCWSTR filename)
void releaseEffect (ID3DXEffect *effect)
void setScreenDimension (int width, int height)

Public Attributes

ResourceManager resManager
SoftShadowScene gs

Friends

class Scene


Detailed Description

GameManager class

Constructor & Destructor Documentation

GameManager::GameManager ( void   ) 

Constructor for a GameManager Object

GameManager::~GameManager ( void   ) 

Destructor for a GameManager Object


Member Function Documentation

int GameManager::init ( void   ) 

Initializes the GameManager

void GameManager::printToConsole ( std::string  output  ) 

Debug Output to Console

void GameManager::addScene ( Scene newScene  ) 

Adds a scene to the scene vector

void GameManager::removeScene ( Scene oldScene  ) 

Removes a scene from the scene vector

void GameManager::setActiveScene ( Scene aScene  ) 

Sets the active scene

void GameManager::keyPressed ( UINT  nChar,
bool  bKeyDown,
bool  bAltDown,
void *  pUserContext 
)

Performs an action whenever a key is pressed

void GameManager::setMouseStatus ( bool  bLeftButtonDown,
bool  bRightButtonDown,
bool  bMiddleButtonDown,
bool  bSideButton1Down,
bool  bSideButton2Down,
int  nMouseWheelDelta,
int  xPos,
int  yPos 
)

Sets the current mouse status

void GameManager::updateGame ( float  fElapsedTime  ) 

update the game/the program

void GameManager::initGame (  ) 

initializes the game/the program

ID3DXEffect * GameManager::getEffect ( UINT  id  ) 

Returns the requested effect

ID3DXEffect * GameManager::loadEffect ( UINT  id,
LPCWSTR  filename 
)

Load an effect from a file

void GameManager::releaseEffect ( ID3DXEffect *  effect  ) 

Release an effect

void GameManager::setScreenDimension ( int  width,
int  height 
)

Sets screen Dimensions


Member Data Documentation

ResourceManager GameManager::resManager

Resource Manager object

SoftShadowScene GameManager::gs

The SoftShadow scene


The documentation for this class was generated from the following files:
Generated on Sun Oct 7 01:15:32 2007 for Adaptive Soft Shadows by  doxygen 1.5.3